package com.epoch.zuul.filter;

/**
 * 验证权限配置
 *
 * @author pangu
 * @date 2020-10-28
 */
public class MateUaaProperties {
	/**
	 * 监控中心和swagger需要访问的url
	 */
	private static final String[] ENDPOINTS = {
            "addStuWrong"
	};

	public static boolean isIn(String targetUrl){
	    //对url进行处理
	    //如果在里面，则 true
        for (int i = 0; i < ENDPOINTS.length; i++) {
            if (targetUrl.contains(ENDPOINTS[i])){
                return true;
            }
        }
        return false;
    }
}

